press button on enter

171

press button on enter -

searchInput.onkeyup = function (e) {
    if (e.key === 'Enter') {
        searchBtn.click();
    }
}

Comments

Submit
0 Comments